var api = require('../../utils/api.js')



Page({

    /**
     * 页面的初始数据
     */
    data: {
        show:1,
        lists1:[],
        lists2:[],
        lists3:[],
        lists4:[],
        lists5:[],
        lists5:[]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {

    },

    seelog(ret){
        console.log(ret);
        var i=ret.currentTarget.dataset.i;
        this.setData({
            show:i
        })
    },
    onShow(){

        this.getlist1();
        this.getlist2();
        this.getlist3();
        this.getlist4();
        this.getlist5();
    },

    getlist5(){
        var that=this;
        api.get({
            url: 'boss/lists5',
            data: {},
            success: data => {
                that.setData({
                    lists5:data.data
                })
            }
        });
    },

    getlist4(){
        var that=this;
        api.get({
            url: 'boss/lists4',
            data: {},
            success: data => {
                that.setData({
                    lists4:data.data
                })
            }
        });
    },

    getlist3(){
        var that=this;
        api.get({
            url: 'boss/lists3',
            data: {},
            success: data => {
                that.setData({
                    lists3:data.data
                })
            }
        });
    },
    getlist2(){
        var that=this;
        api.get({
            url: 'boss/lists2',
            data: {},
            success: data => {
                that.setData({
                    lists2:data.data
                })
            }
        });
    },

    getlist1(){
        var that=this;
        api.get({
            url: 'boss/lists1',
            data: {},
            success: data => {
                that.setData({
                    lists1:data.data
                })
            }
        });
    }


})